package com.zlc.common.core.sys.mapper;

import com.zlc.common.core.sys.model.vo.MayanSysControlVo;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlc.common.core.sys.model.entity.MayanSysControl;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author  zl
 * @date 2025-11-03 
 */
@Mapper
public interface MayanSysControlMapper extends BaseMapper<MayanSysControl> {

    void removeHistControl(@Param(value = "lastTime")Date lastTime);

    /**
     * 查询指定类型的最新监控数据
     */
    MayanSysControlVo queryNew(@Param(value = "controlType")String controlType);

    List<MayanSysControlVo> queryAllControl();
}
